import {UserService} from "./UserService";
import {User} from "../entity/User";

export class UserServiceImpl implements UserService {
    private name: string = "啦啦啦啦啦啦啦阿拉啦啦";
    private age: number = 13888888888;

    updataUserName(user: User): User {
        user.name === null ? user.name = this.name : user.name = user.name;
        user.age === null ? user.age = this.age : user.age = 123;
        return user;
    }
}